module.exports = {
    baseUrl: './',
    productionSourceMap: false,
    devServer: {
        disableHostCheck: true,
        proxy: {
            '/api': {
                target: 'http://localhost:8000/api',
                changeOrigin: true,
                pathRewrite: {
                    '/api': ''
                }
            },
            '/user': {
                target: 'http://localhost:8000/user',
                changeOrigin: true,
                pathRewrite: {
                    '/user': ''
                }
            },
            '/switch': {
                target: 'http://localhost:8000/switch',
                changeOrigin: true,
                pathRewrite: {
                    '/switch': ''
                }
            },
            '/telnet': {
                target: 'http://localhost:8000/telnet',
                changeOrigin: true,
                pathRewrite: {
                    '/telnet': ''
                }
            },
            // '/ms':{
            //     target: 'https://www.easy-mock.com/mock/592501a391470c0ac1fab128',
            //     changeOrigin: true
            // }
        }
    }
}
